package com.apps.stoolkit;

import com.apps.sworld.sToolkit;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ApplicationContextToolkit implements sToolkit {

    public static ApplicationContext applicationContext;

    @Autowired
    public void setApplicationContext(ApplicationContext context)
    {
        applicationContext=context;
    }

    public static ApplicationContext getApplicationContext()
    {
        return applicationContext;
    }

}
